package com.bz.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.bz.model.ProjectDto;
import com.bz.service.IProjectService;

@RestController
@RequestMapping(value = "/api/project")
public class ProjectController {

    @Autowired
    private IProjectService projectService;

    @RequestMapping(value = "/list")
    public List<ProjectDto> list() {
        return projectService.list();
    }
}
